package ACM;

import java.util.Scanner;

public class Main_06 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int sum = 0;
            int n = scanner.nextInt();
            for (int i = 0; i < n; i++) {
                sum = sum + scanner.nextInt();
            }
            System.out.println(sum);
        }
    }
}
